/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.railway.classes;

import java.util.Objects;

/**
 *
 * @author Kenny
 */
public class Route {

    private Integer rid;
    private String routeName;
    private String status;

    public Route() {
    }

    public Route(Integer rid, String routeName, String status) {
        this.rid = rid;
        this.routeName = routeName;
        this.status = status;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRouteName() {
        return routeName;
    }

    public void setRouteName(String routeName) {
        this.routeName = routeName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return routeName;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 17 * hash + Objects.hashCode(this.rid);
        hash = 17 * hash + Objects.hashCode(this.routeName);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Route other = (Route) obj;
        if (!Objects.equals(this.rid, other.rid)) {
            return false;
        }
        return true;
    }
    
}
